-
Notifications
You must be signed in to change notification settings - Fork 222
Conversation
export function quiltPackage({ | ||
jestEnv = 'jsdom', | ||
useReact = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed useReact
as there is no harm in enabling it for all packages
jestTestRunner = 'jest-circus', | ||
polyfill = true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only package that overrides this and sets it to false is polyfills
because we want that package to uh, provide the polyfills.
packageBuild({ | ||
nodeTargets: 'node 12.14.0', | ||
browserTargets: 'extends @shopify/browserslist-config', | ||
}), | ||
createProjectBuildPlugin('Quilt.PackageBuild', ({hooks}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
babelIgnorePatterns no longer exists, and we don't need to add legacy decorator support because @shopify/babel-preset
already enables it correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a pair review with @BPScott LGTM
Description
sewing-kit-next has undergone some juicy changes. Simplifying and reworking its architecture and plugins. Here's a PR to pull our skn dependencies up to the latest versions. The build output of all packages remains identical to main, with the exception of some extra ts-expect-error comments added because TS is confusing itself as I haven't updated the contents of
sewing-kit-plugin-quilt
- to use the latest versions of the sk packages.Stuff of note:
@sewing-kit/{config,hooks,plugins}
packages have all be consolidated into the core package.plugin-javascript
and its built-in babel config is gone, replaced byplugin-babel
, which requires you explicitly state the babel preset that you wan to use. Unsuprisingly we've chosen@shopify/babel-preset
as the baseline babel config.types
andtypesVersions
keys in package.json now point into the build folder directlyTesting
To compare the old and new build output i did the following:
main
branch into~/projects/quilt
, Ranrm -rf .sewing-kit; git clean -f -x packages/*/build; yarn build
to generate a fresh build of main.rm -rf .sewing-kit; git clean -f -x packages/*/build; yarn build
to generate a fresh build of this branchfor PACKAGENAME in $(ls -1 packages) do; diff -ru packages/$PACKAGENAME/build ~/projects/quilt/packages/$PACKAGENAME/build -x '*.tsbuildinfo'
to run diffs of every packages's build output.sewing-kit-plugin-quilt
, and d.ts files no longer being generated at the root (as we now point types/typesVersions directly into the build folder)Type of change